﻿define(["jquery", "app", "msgBox"], function () {
    var AppInit = {
        init: function () {
            App.init();
            comm.checkDevice();
            window.ScreenWidth = $(window).width;
            window.ScreenHeight = $(window).heigth;
            window.editors = [];
            msgBox = new MsgBox({ imgHref: baseUrl + "images/" });

            $('input').on('keydown', function (e) {
                if (e.keyCode == '13') {
                    var form = $(this).parents('form');
                    if (!!form) {
                        form.submit();
                    }
                }
            });
        }
    }
    $(function () {
        AppInit.init();
    })
});
